/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

ul {
  list-style: none;
}

button,
input,
select {
  margin: 0;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

img,
video {
  height: auto;
  max-width: 100%;
}

iframe {
  border: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

:root {
  --color-gray: #adb5bd;
  --color-white: #fff;
  --header-bg: #3b6837;
  --header-fc: #fff;
  --main-bg: #f9f7ec;

  --shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
    rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
}

html,
body {
  background-color: var(--main-bg);
  z-index: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Noto Color Emoji'
    'Segoe UI Emoji', 'Noto Emoji';
  font-size: 16px;
}

#app {
  margin: 0 auto;
  max-width: 960px;

  .top-bar {
    display: flex;
    margin: 1rem;
    font-size: 1rem;
    gap: 1rem;
    align-items: center;
  }

  .icp {
    margin: 1rem;

    @media print {
      display: none;
    }
  }

  .post {
    box-shadow: var(--shadow);
    background-color: #fff;
    border-radius: 0.25rem;
    padding: 1rem;

    @media screen and (width >= 1024px) {
      padding: 2rem;
    }

    @media print {
      all: unset;
    }
  }

  .post-link {
    display: none;

    @media print {
      display: block;
    }
  }

  @media print {
    margin: 0;
    padding: 0;
    max-width: 100%;

    .top-bar {
      display: none;
    }
  }
}

.markdown-body {
  background-color: unset;
  margin-bottom: 2rem;

  font-size: 1rem;
  font-family: inherit;

  ul {
    list-style: unset;
  }

  hr {
    border-bottom: 1px solid #ccccccb3;
    background-color: #cccccc;
  }
}

a {
  background-color: transparent;
  color: #0969da;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}
